Ext.define('TS.view.base.ProductInfo', {
    extend: 'Ext.panel.Panel',
    alias : 'widget.productinfo',
    margins : '0 0 -1 1',
    title : '商品资料',
    layout:'fit',
    hideBorders: true,
    bodyPadding:0,
    initComponent: function() {
        this.items = [
            {
                xtype: 'panel',
                layout: 'border',
                items: [
                    Ext.create('TS.view.base.ProductClassifyTree',{
                    	region:'west',
                    	margins : '0 0 -1 0',
			            border : false,
			            enableDD : true,
			            //split: true,
			            width : 150,
			            minSize : 100,
			            bodyPadding:0,
			            maxSize : 300,
			            rootVisible: false,
			            containerScroll : true,
			            collapsible : true,
			            autoScroll: true
                    }),
                    {
                    	xtype:'panel',
                    	region:'center',
                    	layout: 'border',
                    	items:[
                    		Ext.create('TS.view.base.ProductList',{closable : false,region:'center'}),
                    		{
                    			xtype:'panel',
                    			layout:'column',
                    			region:'south',
                    			collapsed :true,
                    			title:'',
                    			collapsible : true,
                    			items:[
	                    			{
		                    			xtype: 'form',
		                    			title:'业务属性',
		                    			columnWidth:.33,
						                items: [
						                    {
						                        xtype: 'textfield',
						                        name : 'retailPrice',
						                        fieldLabel: '零售价'
						                    },
						                    {
												xtype: 'textfield',
						                        name : 'salePrice',
						                        fieldLabel: '批发价'
						                    },
						                    {
												xtype: 'textfield',
						                        name : 'transferPrice',
						                        fieldLabel: '调拨价'
						                    },
						                    {
												xtype: 'textfield',
						                        name : 'costPrice',
						                        fieldLabel: '成本价'
						                    },
						                    {
												xtype: 'textfield',
						                        name : 'refRetailPrice',
						                        fieldLabel: '参考零售价'
						                    },
						                    {
						                        xtype: 'textfield',
						                        name : 'lastPrice',
						                        fieldLabel: '最后进价'	
						                    },
						                    {
						                        xtype: 'textfield',
						                        name : 'lastIncomeDate',
						                        fieldLabel: '最后到货日期'
						                    }
						                ]
	                    			},
	                    			{
		                    			xtype: 'form',
		                    			title:'药物属性',
		                    			columnWidth:.33,
						                items: [
						                    {
						                        xtype: 'textfield',
						                        name : 'storageConditions',
						                        fieldLabel: '存储条件'	
						                    },
						                    {
						                        xtype: 'textfield',
						                        name : 'dosageform',
						                        fieldLabel: '剂型'
						                    },
						                    {
						                        xtype: 'textfield',
						                        name : 'yibao',
						                        fieldLabel: '医保属性'
						                    },
						                    {
						                        xtype: 'textfield',
						                        name : 'ybItemCode',
						                        fieldLabel: '医保项目编号'
						                    },
						                    {
						                        xtype: 'textfield',
						                        name : 'expiredPeriod',
						                        fieldLabel: '有效期:月'
						                    },
						                    {
						                        xtype: 'textfield',
						                        name : 'sfdaCode',
						                        fieldLabel: '药口SFDA码'
						                    }
						                ]
	                    			},
	                    			{
		                    			xtype: 'form',
		                    			title:'药物属性',
		                    			columnWidth:.34,
		                    			items:[
						                    {
						                        xtype: 'checkboxfield',
						                        name : 'otc',
						                        boxLabel: '是否OTC',
						                        boxLabelAlign:'after'
						                    },
						                    {
						                        xtype: 'checkboxfield',
						                        name : 'essentialDrug',
						                        boxLabel: '是否基本药物',
						                        boxLabelAlign:'after'
						                    },
						                    {
						                        xtype: 'checkboxfield',
						                        name : 'firstDeal',
						                        boxLabel: '是否首营产品',
						                        boxLabelAlign:'after'
						                    },
						                    {
						                        xtype: 'checkboxfield',
						                        name : 'drugAdmin',
						                        boxLabel: '是否监管产品',
						                        boxLabelAlign:'after'
						                    }
		                    			]
	                    			}
                    			]
                    		}
                    	]
                    }
                    
     			]
            }],
        this.callParent(arguments);
    }
});